@extends('layout.layoutv5')
@section('css_block')
<link href="/css/plugins/iCheck/custom.css" rel="stylesheet">
@endsection
@section('content')
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5> 勾选需要补货的机器<small>生成补货列表</small></h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content" style="display: none">
                    <form method="post" class="form-horizontal">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">机器列表</label>

                            <div class="col-sm-10">
                                @foreach ($machineList as $machine)
                                    <label class="checkbox-inline i-checks">
                                        <input type="checkbox" name="machine_list[]" value="{{ $machine['machine_id'] }}">{{ $machine['address'] }}</label>
                                @endforeach
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-2 col-sm-offset-10">
                                <button class="btn btn-primary" type="submit">提交</button>
                             {{--   <button class="btn btn-white" type="submit">取消</button>--}}
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h1>本次补货</h1>
                </div>
                <div class="ibox-content text-success">
                    <h2 class="no-margins"><small>共补货（件）：</small>40 886,200</h2>
                    <h2 class="no-margins"><small>销售价值（元）：</small>40 886,200</h2>
                    <h2 class="no-margins"><small>将盈利（元）：</small>40 886,200</h2>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
      <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>货物列表</h5>
            </div>
            <div class="ibox-content">
                <table class="table table-hover no-margins">
                    <thead>
                    <tr>
                        <th>商品名称</th>
                        <th>数量</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr>
                        <td><small>进行中...</small>
                        </td>
                        <td><i class="fa fa-clock-o"></i> 11:20</td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    </div>
@endsection
@section('js_block')
    <script src="/js/plugins/echarts/echarts-all.js"></script>
    <!-- iCheck -->
    <script src="/js/plugins/iCheck/icheck.min.js"></script>

    <script>
        $(document).ready(function () {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
    </script>
@endsection
